import axiosInstance from "../axiosinstance";

const shopCarInfo={
    //同名结构，前端传送也必须是这个名字
    addToShopCart({fid,count}){
        return axiosInstance.post('/shopCart/addToShopCart',{fid,count})
    },
    getListByPage({pageIndex}){
        return axiosInstance.get('/shopCart/getListByPage',
        {
            params:{
                pageIndex
            }
        })
    },
    getMyShopCartTotalInfo(){
        return axiosInstance.get('/shopCart/getMyShopCartTotalInfo')
    },
    deleteMyShopCartFoodById({id}){
        return axiosInstance.get('/shopCart/deleteMyShopCartFoodById'{
            params:{id}
        })
    },


}

export default shopCarInfo